home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6606 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Message-ID: <xWvN8MD4F55aCz4@tms.dame.shnet.org>
  3. From: TMS@DAME.SHNET.ORG (Mirko Th≈le)
  4. Path: dame.shnet.org!TMS
  5. Organization: Cosys der Notre Dame Hamburg
  6. Subject: Re: Bored? Tell me why my code crashes! :)
  7. Date: Thu, 28 Mar 1996 19:15:56 +0200
  8. X-Mailer: MicroDot 1.11beta16 [REGISTERED 004f55]
  9. References: <199603230639.BAA04609@strauss.udel.edu>, <Pine.AMI.3.91.960322185136.136429608A-100000@arh0268.urh.uiuc.edu>
  10. X-Gateway: ZCONNECT US genepi.shnet.org [UNIX/Connect v0.71]
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Z-TELEFON: ++49 [40] 648 11 69
  15.  
  16. Nachricht vom   : 22.03.1996 (17:53:24)
  17. Reply auf       : Re: Bored? Tell me why my code crashes! :)
  18. geschrieben von : dannyman@enteract.com (Dannyman)
  19. ---------------------------------------------------------------------------
  20.  
  21. If i remember right, you use FGets() to read the line?
  22.  
  23. Use FGets(fh, Buffer, sizeof(Buffer)-1);
  24.  
  25.  
  26. FGets() BUGS:
  27.  
  28. In V36 and V37, it copies one more byte than it should if it doesn't
  29. hit an EOF or newline.  In the example above, it would copy 50 bytes
  30. and put a null in the 51st.  This is fixed in dos V39.  Workaround
  31. for V36/V37: pass in buffersize-1.
  32.  
  33. > ====///=====This message brought to you by dannyman@enteract.com============
  34.  
  35. --
  36. MfG,             Mirko Thoele  E-Mail: TMS@DAME.SHNET.ORG
  37.                CoSys Notre Dame Hamburg - 040/64893287 Voice
  38. ---------------------------------------------------------------------------
  39. Ach was, diese Brⁿcke hΣlt noch hundert Jahre.
  40.                                                  Famous last words Nr.: 922
  41. ---------------------------------------------------------------------------
  42.